package com.nebula;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;


/**
 * @author Eastern unbeaten
 * @email chenshiyun2011@163.com
 * @data 2019/3/31
 */
@MapperScan("com.nebula.*.modules.*.mapper")
@SpringBootApplication
@EnableScheduling
public class ApiApplication {

    public static void main(String[] args) {
        // Customize the spring config location  定义预留配置文件目录,单机应用需要,丢在这里了,为了避免配置冲突,建议整组更改
        System.setProperty("spring.config.additional-location", "file:/opt/pro/api/.conf/,file:${user.home}/.conf/,file:${user.home}/config-test/");

        SpringApplication.run(ApiApplication.class, args);
    }

}
